
{extend name="layout"}
{block name="detail"}

<section class="forms">
    <div class="container-fluid">
        <div class="row">
            <!-- Form Elements -->
            <div class="col-lg-12">
                <div class="card">
                    <div class="card-header d-flex align-items-center">
                        <h3 class="h4 mr-5">支付设置</h3>
                    </div>
                    <div class="card-body">
                        <form action="{:url('admin/setting/savePayRule')}" method="post" enctype="multipart/form-data">
                            <div class="table-responsive">
                                <table class="table">
                                    <tr >
                                        <td class="border text-right">appid</td>
                                        <td class="border"><input type="text" name="wxappid"  value="{$rule['wxappid']}" class="form-control" required></td>
                                    </tr>
                                    <tr >
                                        <td class="border text-right">signkey</td>
                                        <td class="border"><input type="text" name="wxpaysignkey" class="form-control"  value="{$rule['wxpaysignkey']}" required></td>
                                    </tr>
                                    <tr >
                                        <td class="border text-right">mchid</td>
                                        <td class="border"><input type="text" name="wxmchid" class="form-control"  value="{$rule['wxmchid']}" required></td>
                                    </tr>
                                    <tr >
                                        <td class="border text-right">cert证书</td>
                                        <td class="border">
                                            <input type="file" name="cert_path"  ><br/>
                                            {if condition="$rule['cert_path']"}
                                            <small class="text-danger">* 证书已存在</small>
                                            {/if}
                                        </td>
                                    </tr>
                                    <tr >
                                        <td class="border text-right">key证书</td>
                                        <td class="border">
                                            <input type="file" name="key_path"><br/>
                                            {if condition="$rule['key_path']"}
                                            <small class="text-danger">* 证书已存在</small>
                                            {/if}
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" class="border text-center">
                                            <input type="submit" class="btn btn-primary" value="确定">
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>


{/block}